package com.example.yuanboot.model.dto.system;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigInteger;

/**
 * <p>
 * 实体类
 * </p>
 *
 * @author abs
 * @date 2020-09-02
 */
@Data
public class JobAndTrigger {

    /**
     * 定时任务名称
     */
    @ApiModelProperty(value = "定时任务名称")
    private String jobName;
    /**
     * 定时任务组
     */
    @ApiModelProperty(value = "定时任务组")
    private String jobGroup;
    /**
     * 定时任务全类名
     */
    @ApiModelProperty(value = "定时任务全类名")
    private String jobClassName;
    /**
     * 触发器名称
     */
    @ApiModelProperty(value = "触发器名称")
    private String triggerName;
    /**
     * 触发器组
     */
    @ApiModelProperty(value = "触发器组")
    private String triggerGroup;
    /**
     * 重复间隔
     */
    @ApiModelProperty(value = "重复间隔")
    private BigInteger repeatInterval;
    /**
     * 触发次数
     */
    @ApiModelProperty(value = "触发次数")
    private BigInteger timesTriggered;
    /**
     * cron 表达式
     */
    @ApiModelProperty(value = "cron 表达式")
    private String cronExpression;
    /**
     * 时区
     */
    @ApiModelProperty(value = "时区")
    private String timeZoneId;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述")
    private String description;

    /**
     * 定时任务状态 WAITING:等待  PAUSED:暂停  ACQUIRED:正常执行  BLOCKED：阻塞  ERROR：错误
     */
    @ApiModelProperty(value = "定时任务状态 WAITING:等待  PAUSED:暂停  ACQUIRED:正常执行  BLOCKED：阻塞  ERROR：错误")
    private String triggerState;

    private byte[] jobData;

    private String jobMethodName;
}
